STEP 8: Now that the ball is being shot, let's tell the user when they miss.

  • In GRAPHICS, go to and drag in Set Text INSIDE your if statement. Remember, it will be indented TWICE and you'll see this ··=····· next to it.
  • Change the variable name in front of .set_text() from sprite to text.
  • Change the string value inside from "Hello Codesters!" to "You missed!".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)